<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="webjars/jquery/3.1.1/jquery.js"></script>
    <script>
        $.ajax({
            url:'http://localhost:80/hello',
            type:"post",
            success:function (data) {
                $("#info").html("跨域成功，得到的数据为："+data);
            },
            error:function (data) {
                $("#info").html("跨域失败!");
            }
        });
    </script>
</head>
<body>
    <h2>前台系统</h2>
    <p id="info"></p>
</body>
</html>